<?php
    include_once '../clases/Puntuacion.php';
    include_once '../clases/Polla.php';
    
    $tc = $_REQUEST['tc'];
    
    if($tc == 1){
        
        
        
    }else if($tc == 2){
        
        $puntaje = $_REQUEST['total'];
        $oid = $_REQUEST['oidp'];
        $oidpolla = $_REQUEST['oidpolla'];
        
        $pun = new Puntuacion($oid, $puntaje, "", "");
        $pun->editarP();
        
        $polla = new Polla($oidpolla, "", "", "", "", "", "");
        $polla->estadop();
        
        
        
    }
    
?>
